package com.feidee.bigdata.impl;

import com.feidee.bigdata.PaymentService;
import com.feidee.bigdata.dao.PaymentDao;
import com.feidee.bigdata.model.Payment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author:CHQ
 * @Date:2020/4/7 14:51
 * @Description
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;

    @Override
    public int insert(Payment payment) {
        return paymentDao.insert(payment);
    }

    @Override
    public Payment select(Long id) {
        return paymentDao.select(id);
    }
}
